package dq.study.designmodel.command;

/**
 * 命令封装
 *
 * @author dongqun
 * @since 2019/4/18 22:32
 */
public abstract class Command {
    // 命令（发给接受处理内容的封装）
    private String content;

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    // 命令接受者
    protected Receiver receiver;

    // 命令执行
    protected abstract void execute();
}
